/**
 * 
 */
package com.inspur.cloud.demo.controller;

import java.util.List;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.inspur.cloud.demo.entity.User;
import com.inspur.cloud.demo.service.DemoService;

@RestController
@Api(tags="配置管理")
public class DemoController {
    
    @Autowired
    DemoService demoService;

    @GetMapping("/hello")
    //@ApiImplicitParams(value = {@ApiImplicitParam(name = "mdbCode", value = "数据库编号", dataType = "string", paramType = "path", required = true)})
    @ApiOperation(value = "运行sql语句", notes = "根据给定的sql语句运行sql")
    public List<User> hello() {
        return demoService.hello(); 
    }
}
